package com.registration.service;

import com.registration.bean.MedicalRecordBean;
import com.registration.mapper.MedicalRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MedicalRecordServiceImpl implements MedicalRecordService{

    @Autowired
    MedicalRecordMapper medicalRecordMapper;
    @Override
    public List<MedicalRecordBean> selectMedicalRecordsByUserId(Integer userId) {
        return medicalRecordMapper.selectMedicalRecordsByUserId(userId);
    }
}
